// 1.导入 axios
import axios from "@/utils/request.js"

// 2.按需导出 api方法
export const getCates = (params) => axios({ url: 'categories', params })
export const addCate = (data) => axios({ url: 'categories', method: 'post', data })
